package service.impl;

import dao.Dorm_bedsDao;
import dao.impl.Dorm_bedsDaoimpl;
import service.Dorm_bedsService;
import vo.Student_checkin;

import java.sql.SQLException;
import java.util.List;


public class Dorm_bedsServiceimpl implements Dorm_bedsService {
    Dorm_bedsDao dor=new Dorm_bedsDaoimpl();
    @Override
    public int add(int roomid, String bedname, int studentid) throws SQLException, ClassNotFoundException {
        return dor.add(roomid, bedname, studentid);
    }

    @Override
    public int rz(int rommid) throws SQLException, ClassNotFoundException {
        return dor.rz(rommid);
    }

    @Override
    public List<Student_checkin> cx(int room_id, String bed_number) throws SQLException, ClassNotFoundException {
        return dor.cx(room_id, bed_number);
    }
}
